﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Manage/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QianBuo.Lottery.Web.Areas.Manage.Models.Site.AliPayModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	支付宝接口设置
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<fieldset class="fieldset">
    <legend>支付宝接口设置</legend>
    <% Html.BeginForm("AliPay", "Site", new { act = Request["act"] }); %>
    <%=Html.ActionLink("返回<<", "Pay", new { id = ""}, new { @class = "a_blue" })%>
    <ul class="editlist">
        <li>
            <label class="label" for="Enable">是否启用：</label>
            <span class="spans">
				<%=Html.CheckBox("Enable") %>
				<%=Html.ValidationMessageFor(p=>p.Enable) %>
            </span>
        </li>
        <li>
            <label class="label" for="Email">支付宝账号：</label>
            <span class="spans">
				<%=Html.TextBoxFor(p => p.Email) %>
				<%=Html.ValidationMessageFor(p=>p.Email) %>
            </span>
        </li>
        <li>
            <label class="label" for="MemberID">商户编号：</label>
            <span class="spans">
				<%=Html.TextBoxFor(p => p.MemberID) %>
				<%=Html.ValidationMessageFor(p=>p.MemberID) %>
            </span>
        </li>
        <li>
            <label class="label" for="Key">商户密钥：</label>
            <span class="spans">
				<%=Html.TextBoxFor(p => p.Key, new { @class="text300"})%>
				<%=Html.ValidationMessageFor(p=>p.Key) %>
				需要输入加密过后的密钥，加密工具请咨询开发商。
            </span>
        </li>
        <li>
            <label class="label" for="Addr">接口地址：</label>
            <span class="spans">
                <%=Model.Addr %>
				<%--<%=Html.TextBoxFor(p => p.Addr, new { @class = "text400" })%>
				<%=Html.ValidationMessageFor(p=>p.Addr) %>--%>
            </span>
        </li>
        <li>
            <label class="label" for="Pwd">安全密码：</label>
            <span class="spans">
				<input type="password" name="Pwd" id="Pwd" value="" />
				<%=Html.ValidationMessageFor(p=>p.Pwd) %>
            </span>
        </li>
        <li>
            <%=Html.ValidationMessage("Error") %>
        </li>
        <li class="btn">
            <input type="submit" value="保存" />&nbsp;&nbsp;<input type="reset" value="重设" />
        </li>
    </ul>
    <% Html.EndForm(); %>
</fieldset>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="StyleAndScript" runat="server">
<style type="text/css">
    .text300{ width:300px;}
    .text400{ width:400px;}
</style>
</asp:Content>
